<template>
    <div class="main">
        login
        <el-button type="primary" @click="login">按钮</el-button>
    </div>
</template>

<script>
    export default{
        data(){
            return {
                
            }
        },
        methods:{
            login(){
                this.$router.push({name:"main"})
            }
        }
    }
</script>
<style scoped>
/* @import url(); 引入css类 */
</style>